package cn.xutongxue.gtms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 菜单
 * @TableName menu
 */
@TableName(value ="menu")
@Data
public class Menu implements Serializable {
    /**
     * 菜单ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 菜单名称
     */
    @TableField("`name`")
    private String name;

    /**
     * 菜单路由
     */
    @TableField("`path`")
    private String path;

    /**
     * 父菜单ID
     */
    private Long pId;

    /**
     * 排序
     */
    @TableField("`order`")
    private Integer order;

    /**
     * icon图标
     */
    @TableField("`icon`")
    private String icon;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}